package com.ocom.common.utils;

import com.ocom.common.enums.MachEnum;
import com.ocom.common.resp.RespMachMessage;

import java.io.Serializable;


/**
 * 机器服务公共实体
 */
public class RespUtilMach implements Serializable {

    private static final Long serialVersionUID = 6834569867816176230L;

    public static RespMachMessage success(Object objects) {
        RespMachMessage result = new RespMachMessage(MachEnum.OK, objects);
        return result;
    }

    public static RespMachMessage success() {
        return success(null);
    }

    public static RespMachMessage error(MachEnum machEnum) {
        RespMachMessage result = new RespMachMessage(machEnum);
        return result;
    }


}
